package com.example.demo.service.impl;

import com.example.demo.mapper.ChoseMapper;
import com.example.demo.pojo.Chose;
import com.example.demo.service.IChoseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

@Service("ChoseService")
public class ChoseServiceImpl implements IChoseService {

    @Resource
    private ChoseMapper ChoseDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        // TODO Auto-generated method stub
        return this.ChoseDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Chose Chose) {
        // TODO Auto-generated method stub
        return this.ChoseDao.insert(Chose);
    }

    @Override
    public int insertSelective(Chose Chose) {
        // TODO Auto-generated method stub
        return this.ChoseDao.insertSelective(Chose);
    }

    @Override
    public Chose selectByPrimaryKey(Integer id) {
        // TODO Auto-generated method stub
        return this.ChoseDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Chose Chose) {
        // TODO Auto-generated method stub
        return this.ChoseDao.updateByPrimaryKeySelective(Chose);
    }

    @Override
    public int updateByPrimaryKey(Chose Chose) {
        // TODO Auto-generated method stub
        return this.ChoseDao.updateByPrimaryKey(Chose);
    }

    @Override
    public List<Chose> selectChose() {
        // TODO Auto-generated method stub
        return this.ChoseDao.selectChose();
    }

    @Override
    public List<Chose> selectChoseByTid(Integer tid) {
        return this.ChoseDao.selectChoseByTid(tid);
    }
}
